package com.allwinter.yibangsafe.service.impl;

import com.allwinter.yibangsafe.domain.WxUser;
import com.allwinter.yibangsafe.mapper.WxUserMapper;
import com.allwinter.yibangsafe.service.wxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class wxUserServiceImpl implements wxUserService {

    @Autowired(required = false)
    private WxUserMapper wxUserMapper;

    @Override
    public WxUser getById(Long wxUserid) {
        WxUser wxUser = wxUserMapper.selectById(wxUserid);
        return wxUser;
    }

    @Override
    public List<WxUser> getAllWxUser() {
        List<WxUser> wxUsers = wxUserMapper.selectList(null);
        return wxUsers;
    }
}
